<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
	<title></title>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/easing/EasePack.min.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenLite.min.js"></script>
	<script type="text/javascript">

		var outputDIV;
		var cnt = 0;


		var num = 0;

		window.onload = function(){

			setInterval(onEnter,20);
			outputDIV = document.getElementById("output");


			var obj = {myProp:0};
			TweenMax.to(obj, 2, {myProp:100});
			num = obj.myProp;
		}


		function onEnter(){
			cnt++;
			outputDIV.innerText = num.toString();
		}

	</script>
</head>
<body>
<div id="output" ></div>
</body>
</html>